<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            color: blue;
            /* 样式不冲突 不层叠 */
            font-size: 12px;
        }

        div {
            /* 样式冲突 就近原则 */
            color: blueviolet;
        }
    </style>
</head>

<body>
    <div>css层叠性</div>
</body>

</html>